﻿using System.Collections.Generic;
using System.Runtime.Serialization;

namespace FuiouMerchantAccess.Models.Request {
    /// <summary>
    /// 微信参数配置接口请求报文
    /// </summary>
    public class XyWeChatConfigSetRequestInfo : MerchantAccessRequestInfo {
        /// <summary>
        /// 二级代理机构号
        /// </summary>
        [DataMember(Name = "sub_ins_cd")]
        public string SubInsCd { get; set; }

        /// <summary>
        /// 代理商类型(0：一般类，1：绿洲)
        /// </summary>
        [DataMember(Name = "agencyType")]
        public string AgencyType { get; set; }

        /// <summary>
        /// 路由标记：为空或者 0 ；默认传1 为当前使用对应渠道微信参数
        /// </summary>
        [DataMember(Name = "channelFlag")]
        public string ChannelFlag { get; set; }

        /// <summary>
        /// 配置列表
        /// </summary>
        [DataMember(Name = "configs")]
        public List<SetConfigRequestInfo> Configs { get; set; }
    }

    /// <summary>
    /// 微信参数配置列表
    /// </summary>
    public class SetConfigRequestInfo {
        /// <summary>
        /// 富友商户号
        /// </summary>
        [DataMember(Name = "mchntCd")]
        public string MchntCd { get; set; }

        /// <summary>
        /// JSAPI 支付授权目录
        /// </summary>
        [DataMember(Name = "jsapiPath")]
        public string JSApiPath { get; set; }

        /// <summary>
        /// 子商户 SubAPPID
        /// </summary>
        [DataMember(Name = "subAppid")]
        public string SubAppId { get; set; }

        /// <summary>
        /// 子商户推荐关注公众账号 APPID
        /// </summary>
        [DataMember(Name = "subscribeAppid")]
        public string SubScribeAppId { get; set; }
    }
}
